package com.panda.pandawash.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;

import com.panda.pandawash.R;
import com.panda.pandawash.base.BaseActivity;
import com.panda.pandawash.fragment.MonitorSettingFragment;

/**
 * Created by gaowf on 2017/3/7.
 */

public class ParameterSetActivity extends BaseActivity {

    public MonitorSettingFragment mMonitorSettingFragment;
    private Intent intent;
    private String mDevicename;
    private String mInfomation;
    private byte[] settingdata;

    private static ParameterSetActivity  mParameterActivity ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_parameter_setting);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        initToolBar(toolbar,true,R.string.parameter_setting);
        intent = getIntent();
        if(mMonitorSettingFragment == null) {
            mMonitorSettingFragment = new MonitorSettingFragment();
        }
        addFragment(R.id.fl_container, mMonitorSettingFragment);

        mMonitorSettingFragment.onActivityResult(0,MonitorSettingFragment.COMMAND_ECHO_CODE,intent);
        mParameterActivity = this;
    }

    public static ParameterSetActivity  getInstance(){

        return mParameterActivity ;

    }






}
